package com.wanlian.File;

import java.io.File;
import java.sql.Timestamp;

public class StorageItem {
    private String fileName;
    private long fileSize;
    private Timestamp uploadTime;
    private int fileType;
    private int storageId;
    private String deviceId;
    private String thumbnail;
    private String filePath;

    public StorageItem(){

    }

    public StorageItem(File file){
        this.fileName=file.getName();
        this.filePath=file.getPath();
        this.fileSize=file.length();
        this.uploadTime=new Timestamp( file.lastModified());
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    public Timestamp getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Timestamp uploadTime) {
        this.uploadTime = uploadTime;
    }

    public int getFileType() {
        return fileType;
    }

    public void setFileType(int fileType) {
        this.fileType = fileType;
    }

    public int getStorageId() {
        return storageId;
    }

    public void setStorageId(int storageId) {
        this.storageId = storageId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
}
